package demo.DataStrucAndAlgo.Easy_pritice;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/10/11-10-11-19:22
 * @Description：demo.DataStrucAndAlgo.Easy_pritice
 */
public class BaiduTest1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] module= {66,97,100,105,117};


        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            String str = sc.next();
            int[] value = new int[str.length()];
            for (int j = 0; j < str.length(); j++) {
                value[j] = str.charAt(j) + 0;
            }
            Arrays.sort(value);
            System.out.println(Arrays.toString(value));
            if(Arrays.equals(value,module)){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }
    }
}
